package com.yangxk.kadmin.common.exception;

import com.yangxk.kadmin.common.enumeration.BaseExceptionEnum;

/**
 * 业务异常
 *
 * @author yangxk
 * @date 2018/9/5 20:57
 */
public class BizException extends BaseException {

    private BaseExceptionEnum baseExceptionEnum;

    public BizException(BaseExceptionEnum exceptionEnum) {
        this.baseExceptionEnum = exceptionEnum;
        this.code = exceptionEnum.getCode();
        this.message = exceptionEnum.getMessage();
    }

    public BaseExceptionEnum getBaseExceptionEnum() {
        return baseExceptionEnum;
    }
}
